package com.ag.answergames.entity;


import com.ag.answergames.util.IdJsonSerialize;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

@Data
@TableName("question_store")
public class QuestionEntity {

    @JsonSerialize(using = IdJsonSerialize.class)
    private Long id;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "wrong_id")
    private Long wrongId;

    @TableField(value = "create_time")
    private String createTime;

    @TableField(value = "update_time")
    private String updateTime;

    private String remark;

    private String title;

    @TableField(value = "answer_correct")
    private String answerCorrect;

    @TableField(value = "answer_a")
    private String answerA;

    @TableField(value = "answer_b")
    private String answerB;

    @TableField(value = "answer_c")
    private String answerC;

    @TableField(value = "answer_d")
    private String answerD;

    @TableField(value = "degree_code")
    private Integer degreeCode;

    @TableField(value = "grade_code")
    private Integer gradeCode;

    @TableField(value = "subject_code")
    private Integer subjectCode;

    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(value = "wrong_count")
    private Integer wrongCount;

    @TableField(value = "title_describe")
    private String titleDescribe;
}
